<template>
  <input type="text" class="my-input" v-model="inputValue" @input="onInput" />
</template>

<script>
export default {
  name: "MyInput",
  data() {
    return {
      inputValue: ""
    };
  },
  methods: {
    onInput() {
      this.$emit("input", this.inputValue);
    }
  }
};
</script>

<style scoped>
.my-input {
  padding: 10px;
  outline: none;
  border-radius: 4px;
  border: 1px solid #c2c0c0;
}
.my-input:focus {
  border: 1px solid #409eff;
}
</style>